package com.chujian.framework.starter.log.service.impl;

import com.chujian.framework.starter.log.model.AuditLog;
import com.chujian.framework.starter.log.service.ILogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

/**
 * 数据库保存日志
 *
 * @author chujian
 * @since 2021-12-12
 */
@Slf4j
@Service
@ConditionalOnProperty(name = "chujian.log.audit.logType", havingValue = "db", matchIfMissing = false)
public class LoggerLogService implements ILogService {
    // todo 数据库保存日志，调用日志Client，保存日志

    @Override
    public void saveAuditLog(AuditLog log) {

    }
}
